package com.wayhome.springframework.test;

public class UserService {

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    private String userId;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    private UserDao userDao;

    public UserDao getUserDao() {
        return this.userDao;
    }

    public void queryUser(){
        System.out.println("查询到的用户名称是：" + userDao.queryUserName(getUserId()));
    }

}
